{% extends 'base_loggedin.html' %}
{% block title %}
{{ block.super }} | Manage Conduits
{% endblock %}
{% block block_content %}
    <div class="top">
        <p class="left">Manage Conduits</p>
        <p class="right"><a href="/" title="">Back to Dashboard</a></p>
    </div>

    <div class="center">

        <table width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="6" align="right">
                <a class="btn" href="/new_conduit/?next=/manage_conduits" title="Create a new conduit">New conduit</a>
            </td>
        </tr>
        </table>
        {% for conduit in conduits %}
            <table width="100%" cellpadding="0" cellspacing="0">
            <tr id="item_{{ forloop.counter }}" class="{% cycle 'color' 'sin_color' %}">
                <td width="11%" align="center">
                    <!--a href="/activate" title="">
                        <img src="/media/images/ico_tilde.png" alt="" />
                    </a-->
                    &nbsp;
                    <a title="Delete this conduit"
                        href="javascript:if (confirm('Are you sure you want to delete {{ conduit.name }} conduit?')) { window.location = '/delete_conduit/{{ conduit.id }}'; }">
                        <img src="/media/images/ico_cruz.png" alt="" />
                    </a>
                </td>
                <td >
                    {{ conduit.getPluginName }}
                </td>
                <td >
                    {{ conduit.name }}
                </td>
            </tr>
            </table>
        {% empty %}
        <p>You have not any conduit yet. Go to <a href="/new_conduit/">New conduit</a> to add a new one.</p>
        {% endfor %}
    </div>

{% endblock %}
